import {AuthenticateUser} from '../../../models/AuthenticateUser';
export class UserLoginedDto{
  username:string;
  nickname:string;
  avatar:string;
  token:string;
  refreshToken:string;

  constructor(authUser:AuthenticateUser)
  {
    this.username = authUser.user.username;
    this.nickname = authUser.user.nickname;
    this.avatar = authUser.user.avatar;
    this.token = authUser.token._id;
    //this.refreshToken = authUser.refreshToken.id;
  }
}
